<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
        </script>
        <script>
            $(document).ready(function(){
            $("p").click(function(){
                $(this).hide();
                });
            });
        </script>
    </head>
    <body>
        <form name="week" method="GET">
            <?php
                $week=array("Mon",'Tue','Wed','Thu','Fri','Sat','Sun');
                foreach (range(0,6) as $i) {
                    
                    echo '<input type="checkbox" name="weekday[]"'.' value="'.$week[$i].'" />'.$week[$i];
                }
             ?>
            <input type="submit" name="submit" value="Add the Event"/>
        </form>
        <?php
            echo '<p style="color:blue;margin-left:20px;"> You choice is </p>'.'<pre style="color:purple">';
            print_r($_GET['weekday']);
             foreach ($_GET['weekday'] as $t){
                 echo "\t $t"; 
             }
             print '</pre>';
        ?>
        <?php
            $date=array(12,'Dec',2012);
             list($day,$month,$year)=$date;
             print '<pre>'.($day).$month.$year.'</pre>';
             ?>
    </body>
</html>
